//
//  HYTableViewCellForSingerMore.m
//  TTLestening
//
//  Created by dllo on 16/3/29.
//  Copyright © 2016年 dilo. All rights reserved.
//

#import "HYTableViewCellForSingerMore.h"
#import <SDWebImage/UIImageView+WebCache.h>
#import "HYModelForSingerMore.h"

@interface HYTableViewCellForSingerMore ()

@property (weak, nonatomic) IBOutlet UIImageView *imageViewForPic;
@property (weak, nonatomic) IBOutlet UILabel *labelForName;
@property (weak, nonatomic) IBOutlet UILabel *labelForDesc;

@end

@implementation HYTableViewCellForSingerMore

#pragma mark - init
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
    
        self.selectionStyle = UITableViewCellSelectionStyleNone;
    }
    
    return self;
}








- (void)passMoldel:(HYModelForSingerMore *)model {
    
    self.labelForName.text = model.name;
    self.labelForDesc.text = model.desc;
    
    //    NSLog(@"%@",model.name);
    
    [self.imageViewForPic sd_setImageWithURL:[NSURL URLWithString:model.picUrl] placeholderImage:[UIImage imageNamed:@"iconfont-jiazai"]];
}














- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

@end
